﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ConversionFuntion.aspx.cs" Inherits="StringPlay.ConversionFuntion" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Convert any string to Numeric format (eg.: decimal, int and long)</h2>
    <br />
    <br />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table class="style1">
                <tr>
                    <th style="width: 200px; text-align: left;">
                        &nbsp; Action
                    </th>
                    <th style="width: 150px;">
                        &nbsp; Input
                    </th>
                    <th style="width: 100px;">
                        &nbsp;
                    </th>
                    <th style="text-align: left; color: Green;">
                        &nbsp; Get Result
                    </th>
                </tr>
                <tr>
                    <td>
                        Convert to Decimal:
                    </td>
                    <td>
                        <asp:TextBox ID="txtDecimal" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Button ID="btnDecimal" runat="server" Text="Submit" OnClick="btnDecimal_Click" />
                    </td>
                    <td style="color: Green;">
                        <asp:Label ID="lblDecimal" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        Convert to Double:
                    </td>
                    <td>
                        <asp:TextBox ID="txtDouble" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Button ID="btnDouble" runat="server" Text="Submit" OnClick="btnDouble_Click" />
                    </td>
                    <td style="color: Green;">
                        <asp:Label ID="lblDouble" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        Convert to Integer(Int32):
                    </td>
                    <td>
                        <asp:TextBox ID="txtInteger" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Button ID="btnInteger" runat="server" Text="Submit" OnClick="btnInteger_Click" />
                    </td>
                    <td style="color: Green;">
                        <asp:Label ID="lblInteger" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        Convert to Long Integer(Int64):
                    </td>
                    <td>
                        <asp:TextBox ID="txtLongInteger" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Button ID="btnLongInteger" runat="server" Text="Submit" OnClick="btnLongInteger_Click" />
                    </td>
                    <td style="color: Green;">
                        <asp:Label ID="lblLongInteger" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
